home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / docshell / nsIDocShellLoadInfo.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  12KB  |  309 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDocShellLoadInfo.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDocShellLoadInfo_h__
  6. #define __gen_nsIDocShellLoadInfo_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIURI; /* forward declaration */
  18.  
  19. class nsIInputStream; /* forward declaration */
  20.  
  21. class nsISHEntry; /* forward declaration */
  22.  
  23. typedef PRInt32 nsDocShellInfoLoadType;
  24.  
  25.  
  26. /* starting interface:    nsIDocShellLoadInfo */
  27. #define NS_IDOCSHELLLOADINFO_IID_STR "4f813a88-7aca-4607-9896-d97270cdf15e"
  28.  
  29. #define NS_IDOCSHELLLOADINFO_IID \
  30.   {0x4f813a88, 0x7aca, 0x4607, \
  31.     { 0x98, 0x96, 0xd9, 0x72, 0x70, 0xcd, 0xf1, 0x5e }}
  32.  
  33. class NS_NO_VTABLE nsIDocShellLoadInfo : public nsISupports {
  34.  public: 
  35.  
  36.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOCSHELLLOADINFO_IID)
  37.  
  38.   /** This is the referrer for the load. */
  39.   /* attribute nsIURI referrer; */
  40.   NS_IMETHOD GetReferrer(nsIURI * *aReferrer) = 0;
  41.   NS_IMETHOD SetReferrer(nsIURI * aReferrer) = 0;
  42.  
  43.   /** The owner of the load, that is, the entity responsible for 
  44.      *  causing the load to occur. This should be a nsIPrincipal typically.
  45.      */
  46.   /* attribute nsISupports owner; */
  47.   NS_IMETHOD GetOwner(nsISupports * *aOwner) = 0;
  48.   NS_IMETHOD SetOwner(nsISupports * aOwner) = 0;
  49.  
  50.   /** If this attribute is true and no owner is specified, copy
  51.      *  the owner from the referring document.
  52.      */
  53.   /* attribute boolean inheritOwner; */
  54.   NS_IMETHOD GetInheritOwner(PRBool *aInheritOwner) = 0;
  55.   NS_IMETHOD SetInheritOwner(PRBool aInheritOwner) = 0;
  56.  
  57.   enum { loadNormal = 0 };
  58.  
  59.   enum { loadNormalReplace = 1 };
  60.  
  61.   enum { loadHistory = 2 };
  62.  
  63.   enum { loadReloadNormal = 3 };
  64.  
  65.   enum { loadReloadBypassCache = 4 };
  66.  
  67.   enum { loadReloadBypassProxy = 5 };
  68.  
  69.   enum { loadReloadBypassProxyAndCache = 6 };
  70.  
  71.   enum { loadLink = 7 };
  72.  
  73.   enum { loadRefresh = 8 };
  74.  
  75.   enum { loadReloadCharsetChange = 9 };
  76.  
  77.   enum { loadBypassHistory = 10 };
  78.  
  79.   enum { loadStopContent = 11 };
  80.  
  81.   enum { loadStopContentAndReplace = 12 };
  82.  
  83.   enum { loadNormalExternal = 13 };
  84.  
  85.   /** Contains a load type as specified by the load* constants */
  86.   /* attribute nsDocShellInfoLoadType loadType; */
  87.   NS_IMETHOD GetLoadType(nsDocShellInfoLoadType *aLoadType) = 0;
  88.   NS_IMETHOD SetLoadType(nsDocShellInfoLoadType aLoadType) = 0;
  89.  
  90.   /** SHEntry for this page */
  91.   /* attribute nsISHEntry SHEntry; */
  92.   NS_IMETHOD GetSHEntry(nsISHEntry * *aSHEntry) = 0;
  93.   NS_IMETHOD SetSHEntry(nsISHEntry * aSHEntry) = 0;
  94.  
  95.   /** Target for load, like _content, _blank etc. */
  96.   /* attribute wstring target; */
  97.   NS_IMETHOD GetTarget(PRUnichar * *aTarget) = 0;
  98.   NS_IMETHOD SetTarget(const PRUnichar * aTarget) = 0;
  99.  
  100.   /** Post data */
  101.   /* attribute nsIInputStream postDataStream; */
  102.   NS_IMETHOD GetPostDataStream(nsIInputStream * *aPostDataStream) = 0;
  103.   NS_IMETHOD SetPostDataStream(nsIInputStream * aPostDataStream) = 0;
  104.  
  105.   /** Additional headers */
  106.   /* attribute nsIInputStream headersStream; */
  107.   NS_IMETHOD GetHeadersStream(nsIInputStream * *aHeadersStream) = 0;
  108.   NS_IMETHOD SetHeadersStream(nsIInputStream * aHeadersStream) = 0;
  109.  
  110.   /** True if the referrer should be sent, false if it shouldn't be
  111.      *  sent, even if it's available. This attribute defaults to true.
  112.      */
  113.   /* attribute boolean sendReferrer; */
  114.   NS_IMETHOD GetSendReferrer(PRBool *aSendReferrer) = 0;
  115.   NS_IMETHOD SetSendReferrer(PRBool aSendReferrer) = 0;
  116.  
  117. };
  118.  
  119. /* Use this macro when declaring classes that implement this interface. */
  120. #define NS_DECL_NSIDOCSHELLLOADINFO \
  121.   NS_IMETHOD GetReferrer(nsIURI * *aReferrer); \
  122.   NS_IMETHOD SetReferrer(nsIURI * aReferrer); \
  123.   NS_IMETHOD GetOwner(nsISupports * *aOwner); \
  124.   NS_IMETHOD SetOwner(nsISupports * aOwner); \
  125.   NS_IMETHOD GetInheritOwner(PRBool *aInheritOwner); \
  126.   NS_IMETHOD SetInheritOwner(PRBool aInheritOwner); \
  127.   NS_IMETHOD GetLoadType(nsDocShellInfoLoadType *aLoadType); \
  128.   NS_IMETHOD SetLoadType(nsDocShellInfoLoadType aLoadType); \
  129.   NS_IMETHOD GetSHEntry(nsISHEntry * *aSHEntry); \
  130.   NS_IMETHOD SetSHEntry(nsISHEntry * aSHEntry); \
  131.   NS_IMETHOD GetTarget(PRUnichar * *aTarget); \
  132.   NS_IMETHOD SetTarget(const PRUnichar * aTarget); \
  133.   NS_IMETHOD GetPostDataStream(nsIInputStream * *aPostDataStream); \
  134.   NS_IMETHOD SetPostDataStream(nsIInputStream * aPostDataStream); \
  135.   NS_IMETHOD GetHeadersStream(nsIInputStream * *aHeadersStream); \
  136.   NS_IMETHOD SetHeadersStream(nsIInputStream * aHeadersStream); \
  137.   NS_IMETHOD GetSendReferrer(PRBool *aSendReferrer); \
  138.   NS_IMETHOD SetSendReferrer(PRBool aSendReferrer); 
  139.  
  140. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  141. #define NS_FORWARD_NSIDOCSHELLLOADINFO(_to) \
  142.   NS_IMETHOD GetReferrer(nsIURI * *aReferrer) { return _to GetReferrer(aReferrer); } \
  143.   NS_IMETHOD SetReferrer(nsIURI * aReferrer) { return _to SetReferrer(aReferrer); } \
  144.   NS_IMETHOD GetOwner(nsISupports * *aOwner) { return _to GetOwner(aOwner); } \
  145.   NS_IMETHOD SetOwner(nsISupports * aOwner) { return _to SetOwner(aOwner); } \
  146.   NS_IMETHOD GetInheritOwner(PRBool *aInheritOwner) { return _to GetInheritOwner(aInheritOwner); } \
  147.   NS_IMETHOD SetInheritOwner(PRBool aInheritOwner) { return _to SetInheritOwner(aInheritOwner); } \
  148.   NS_IMETHOD GetLoadType(nsDocShellInfoLoadType *aLoadType) { return _to GetLoadType(aLoadType); } \
  149.   NS_IMETHOD SetLoadType(nsDocShellInfoLoadType aLoadType) { return _to SetLoadType(aLoadType); } \
  150.   NS_IMETHOD GetSHEntry(nsISHEntry * *aSHEntry) { return _to GetSHEntry(aSHEntry); } \
  151.   NS_IMETHOD SetSHEntry(nsISHEntry * aSHEntry) { return _to SetSHEntry(aSHEntry); } \
  152.   NS_IMETHOD GetTarget(PRUnichar * *aTarget) { return _to GetTarget(aTarget); } \
  153.   NS_IMETHOD SetTarget(const PRUnichar * aTarget) { return _to SetTarget(aTarget); } \
  154.   NS_IMETHOD GetPostDataStream(nsIInputStream * *aPostDataStream) { return _to GetPostDataStream(aPostDataStream); } \
  155.   NS_IMETHOD SetPostDataStream(nsIInputStream * aPostDataStream) { return _to SetPostDataStream(aPostDataStream); } \
  156.   NS_IMETHOD GetHeadersStream(nsIInputStream * *aHeadersStream) { return _to GetHeadersStream(aHeadersStream); } \
  157.   NS_IMETHOD SetHeadersStream(nsIInputStream * aHeadersStream) { return _to SetHeadersStream(aHeadersStream); } \
  158.   NS_IMETHOD GetSendReferrer(PRBool *aSendReferrer) { return _to GetSendReferrer(aSendReferrer); } \
  159.   NS_IMETHOD SetSendReferrer(PRBool aSendReferrer) { return _to SetSendReferrer(aSendReferrer); } 
  160.  
  161. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  162. #define NS_FORWARD_SAFE_NSIDOCSHELLLOADINFO(_to) \
  163.   NS_IMETHOD GetReferrer(nsIURI * *aReferrer) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReferrer(aReferrer); } \
  164.   NS_IMETHOD SetReferrer(nsIURI * aReferrer) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetReferrer(aReferrer); } \
  165.   NS_IMETHOD GetOwner(nsISupports * *aOwner) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOwner(aOwner); } \
  166.   NS_IMETHOD SetOwner(nsISupports * aOwner) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOwner(aOwner); } \
  167.   NS_IMETHOD GetInheritOwner(PRBool *aInheritOwner) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInheritOwner(aInheritOwner); } \
  168.   NS_IMETHOD SetInheritOwner(PRBool aInheritOwner) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetInheritOwner(aInheritOwner); } \
  169.   NS_IMETHOD GetLoadType(nsDocShellInfoLoadType *aLoadType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadType(aLoadType); } \
  170.   NS_IMETHOD SetLoadType(nsDocShellInfoLoadType aLoadType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLoadType(aLoadType); } \
  171.   NS_IMETHOD GetSHEntry(nsISHEntry * *aSHEntry) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSHEntry(aSHEntry); } \
  172.   NS_IMETHOD SetSHEntry(nsISHEntry * aSHEntry) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSHEntry(aSHEntry); } \
  173.   NS_IMETHOD GetTarget(PRUnichar * *aTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTarget(aTarget); } \
  174.   NS_IMETHOD SetTarget(const PRUnichar * aTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTarget(aTarget); } \
  175.   NS_IMETHOD GetPostDataStream(nsIInputStream * *aPostDataStream) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPostDataStream(aPostDataStream); } \
  176.   NS_IMETHOD SetPostDataStream(nsIInputStream * aPostDataStream) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPostDataStream(aPostDataStream); } \
  177.   NS_IMETHOD GetHeadersStream(nsIInputStream * *aHeadersStream) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHeadersStream(aHeadersStream); } \
  178.   NS_IMETHOD SetHeadersStream(nsIInputStream * aHeadersStream) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHeadersStream(aHeadersStream); } \
  179.   NS_IMETHOD GetSendReferrer(PRBool *aSendReferrer) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSendReferrer(aSendReferrer); } \
  180.   NS_IMETHOD SetSendReferrer(PRBool aSendReferrer) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSendReferrer(aSendReferrer); } 
  181.  
  182. #if 0
  183. /* Use the code below as a template for the implementation class for this interface. */
  184.  
  185. /* Header file */
  186. class nsDocShellLoadInfo : public nsIDocShellLoadInfo
  187. {
  188. public:
  189.   NS_DECL_ISUPPORTS
  190.   NS_DECL_NSIDOCSHELLLOADINFO
  191.  
  192.   nsDocShellLoadInfo();
  193.  
  194. private:
  195.   ~nsDocShellLoadInfo();
  196.  
  197. protected:
  198.   /* additional members */
  199. };
  200.  
  201. /* Implementation file */
  202. NS_IMPL_ISUPPORTS1(nsDocShellLoadInfo, nsIDocShellLoadInfo)
  203.  
  204. nsDocShellLoadInfo::nsDocShellLoadInfo()
  205. {
  206.   /* member initializers and constructor code */
  207. }
  208.  
  209. nsDocShellLoadInfo::~nsDocShellLoadInfo()
  210. {
  211.   /* destructor code */
  212. }
  213.  
  214. /* attribute nsIURI referrer; */
  215. NS_IMETHODIMP nsDocShellLoadInfo::GetReferrer(nsIURI * *aReferrer)
  216. {
  217.     return NS_ERROR_NOT_IMPLEMENTED;
  218. }
  219. NS_IMETHODIMP nsDocShellLoadInfo::SetReferrer(nsIURI * aReferrer)
  220. {
  221.     return NS_ERROR_NOT_IMPLEMENTED;
  222. }
  223.  
  224. /* attribute nsISupports owner; */
  225. NS_IMETHODIMP nsDocShellLoadInfo::GetOwner(nsISupports * *aOwner)
  226. {
  227.     return NS_ERROR_NOT_IMPLEMENTED;
  228. }
  229. NS_IMETHODIMP nsDocShellLoadInfo::SetOwner(nsISupports * aOwner)
  230. {
  231.     return NS_ERROR_NOT_IMPLEMENTED;
  232. }
  233.  
  234. /* attribute boolean inheritOwner; */
  235. NS_IMETHODIMP nsDocShellLoadInfo::GetInheritOwner(PRBool *aInheritOwner)
  236. {
  237.     return NS_ERROR_NOT_IMPLEMENTED;
  238. }
  239. NS_IMETHODIMP nsDocShellLoadInfo::SetInheritOwner(PRBool aInheritOwner)
  240. {
  241.     return NS_ERROR_NOT_IMPLEMENTED;
  242. }
  243.  
  244. /* attribute nsDocShellInfoLoadType loadType; */
  245. NS_IMETHODIMP nsDocShellLoadInfo::GetLoadType(nsDocShellInfoLoadType *aLoadType)
  246. {
  247.     return NS_ERROR_NOT_IMPLEMENTED;
  248. }
  249. NS_IMETHODIMP nsDocShellLoadInfo::SetLoadType(nsDocShellInfoLoadType aLoadType)
  250. {
  251.     return NS_ERROR_NOT_IMPLEMENTED;
  252. }
  253.  
  254. /* attribute nsISHEntry SHEntry; */
  255. NS_IMETHODIMP nsDocShellLoadInfo::GetSHEntry(nsISHEntry * *aSHEntry)
  256. {
  257.     return NS_ERROR_NOT_IMPLEMENTED;
  258. }
  259. NS_IMETHODIMP nsDocShellLoadInfo::SetSHEntry(nsISHEntry * aSHEntry)
  260. {
  261.     return NS_ERROR_NOT_IMPLEMENTED;
  262. }
  263.  
  264. /* attribute wstring target; */
  265. NS_IMETHODIMP nsDocShellLoadInfo::GetTarget(PRUnichar * *aTarget)
  266. {
  267.     return NS_ERROR_NOT_IMPLEMENTED;
  268. }
  269. NS_IMETHODIMP nsDocShellLoadInfo::SetTarget(const PRUnichar * aTarget)
  270. {
  271.     return NS_ERROR_NOT_IMPLEMENTED;
  272. }
  273.  
  274. /* attribute nsIInputStream postDataStream; */
  275. NS_IMETHODIMP nsDocShellLoadInfo::GetPostDataStream(nsIInputStream * *aPostDataStream)
  276. {
  277.     return NS_ERROR_NOT_IMPLEMENTED;
  278. }
  279. NS_IMETHODIMP nsDocShellLoadInfo::SetPostDataStream(nsIInputStream * aPostDataStream)
  280. {
  281.     return NS_ERROR_NOT_IMPLEMENTED;
  282. }
  283.  
  284. /* attribute nsIInputStream headersStream; */
  285. NS_IMETHODIMP nsDocShellLoadInfo::GetHeadersStream(nsIInputStream * *aHeadersStream)
  286. {
  287.     return NS_ERROR_NOT_IMPLEMENTED;
  288. }
  289. NS_IMETHODIMP nsDocShellLoadInfo::SetHeadersStream(nsIInputStream * aHeadersStream)
  290. {
  291.     return NS_ERROR_NOT_IMPLEMENTED;
  292. }
  293.  
  294. /* attribute boolean sendReferrer; */
  295. NS_IMETHODIMP nsDocShellLoadInfo::GetSendReferrer(PRBool *aSendReferrer)
  296. {
  297.     return NS_ERROR_NOT_IMPLEMENTED;
  298. }
  299. NS_IMETHODIMP nsDocShellLoadInfo::SetSendReferrer(PRBool aSendReferrer)
  300. {
  301.     return NS_ERROR_NOT_IMPLEMENTED;
  302. }
  303.  
  304. /* End of implementation class template. */
  305. #endif
  306.  
  307.  
  308. #endif /* __gen_nsIDocShellLoadInfo_h__ */
  309.